﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QL_NOI_TRU
{
    public partial class frmMain : DevExpress.XtraEditors.XtraForm
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void simpleButton7_Click(object sender, EventArgs e)
        {
            var f = new frmTaiKhoan { TopLevel = false};
            f.Show();
            pcbcapnhat.Controls.Clear();
            pcbcapnhat.Controls.Add(f);
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            var f = new frmTTNhanVien { TopLevel = false };
            f.Show();
            pcbcapnhat.Controls.Clear();
            pcbcapnhat.Controls.Add(f);
        }


/// <summary>
/// click button "tiếp nhận" 
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            var f = new frmChucNangTiepNhan { TopLevel = false };
            f.Show();
            pcbcapnhat.Controls.Clear();
            pcbcapnhat.Controls.Add(f);
        }

        private void simpleButton8_Click(object sender, EventArgs e)
        {
            var f = new frmGIAODIEN { TopLevel = false };
            f.Show();
            pcbcapnhat.Controls.Clear();
            pcbcapnhat.Controls.Add(f);
        }

        private void simpleButton3_Click(object sender, EventArgs e)
        {
            var f = new frmChucNangBPHanhChinh { TopLevel = false };
            f.Show();
            pcbcapnhat.Controls.Clear();
            pcbcapnhat.Controls.Add(f);
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            var f = new frmChucNangDieuTri { TopLevel = false };
            f.Show();
            pcbcapnhat.Controls.Clear();
            pcbcapnhat.Controls.Add(f);
        }
    }
}